package com.feri.sh.core.entity.third;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 5.短信发送表(Sms)表实体类
 *
 * @author makejava
 * @since 2023-05-10 11:57:30
 */
@Data
@NoArgsConstructor
@TableName("t_sms")
public class Sms {
    //序号，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //类型：1.注册 2.登录3.密码找回 4.通知
    private Integer type;
    //手机号
    private String phone;
    //内容信息
    private String info;
    //创建时间
    private Date ctime;

    public Sms(Integer type, String phone, String info) {
        this.type = type;
        this.phone = phone;
        this.info = info;
        ctime=new Date();
    }
}
